<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<h3>修改用户信息</h3>
<span style="color: red">${msg}</span>
<form action="UpdateUserServlet" method="post">
    用户id:<input type="text" value="${user.id}" name = "userId" readonly><br>
    用户名:<input type="text" value="${user.username}" name = "username" ><br>
    用户密码:<input type="password" value="${user.password}" name = "password" ><br>
    用户角色: <c:if test="${user.power == 0}" >
    <input type="radio" value="0" name = "power" checked >超级管理员
    <input type="radio" value="1" name = "power" >普通用户
</c:if>
    <c:if test="${user.power == 1}" >
        <input type="radio" value="0" name = "power"  >超级管理员
        <input type="radio" value="1" name = "power" checked>普通用户
    </c:if>  <br>
    <input type="submit" value="修改">
</form>
</body>
</html>
